package com.liuhao.domain.admin;

import org.springframework.stereotype.Component;


/**
 * 用户实体类
 *
 */
@Component
public class User {
    private Long id;//用户id，设置自增
    private String username;//用户名，登录名
    private String password;//登录密码
    private Long roleId;//所属角色id
    private String name;
    private int sex;//性别0,代表未知，1代表男，2代表女
    private Integer age;//年龄
    private String address;//家庭住址

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public int getSex() {
        return sex;
    }
    public void setSex(int sex) {
        this.sex = sex;
    }
    public Integer getAge() {
        return age;
    }
    public void setAge(Integer age) {
        this.age = age;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public Long getRoleId() {
        return roleId;
    }
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

}
